Platform Explorer / Nuxeo Platform 2021.48

Operation Context.RunDocumentOperationInNewTx (Run Document Chain in new Tx)

Description

Run an operation chain in a separate tx. The 'parameters' injected are accessible in the subcontext ChainParameters. For instance, @{ChainParameters['parameterKey']}.
Operation id Context.RunDocumentOperationInNewTx
Category Execution Flow
Label Run Document Chain in new Tx
Requires
Since

Parameters

Name Description Type Required Default value
id string yes  
isolate boolean no false 
parameters Accessible in the subcontext ChainParameters. For instance, @{ChainParameters['parameterKey']}. properties no  
rollbackGlobalOnError boolean no false 
timeout integer no  

Signature

Inputs void
Outputs void

Implementation Information

Implementation Class Class: org.nuxeo.ecm.automation.core.operations.execution.RunInNewTransaction
Contributing Component org.nuxeo.ecm.core.automation.coreContrib

JSON Definition

{
  "id" : "Context.RunDocumentOperationInNewTx",
  "label" : "Run Document Chain in new Tx",
  "category" : "Execution Flow",
  "requires" : null,
  "description" : "Run an operation chain in a separate tx. The 'parameters' injected are accessible in the subcontext ChainParameters. For instance, @{ChainParameters['parameterKey']}.",
  "url" : "Context.RunDocumentOperationInNewTx",
  "signature" : [ "void", "void" ],
  "params" : [ {
    "name" : "id",
    "description" : null,
    "type" : "string",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "isolate",
    "description" : null,
    "type" : "boolean",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ "false" ]
  }, {
    "name" : "parameters",
    "description" : "Accessible in the subcontext ChainParameters. For instance, @{ChainParameters['parameterKey']}.",
    "type" : "properties",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "rollbackGlobalOnError",
    "description" : null,
    "type" : "boolean",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ "false" ]
  }, {
    "name" : "timeout",
    "description" : null,
    "type" : "integer",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}